package lu.uni.adtool.ui.printview;

import java.awt.BorderLayout;
import java.awt.Frame;

import java.awt.print.Pageable;

import javax.swing.JDialog;

public class JPrintPreviewDialog extends JDialog
{

  /**
   * Constructs a new instance.
   */
  public JPrintPreviewDialog(Frame frame,final Pageable pageable)
  {
    super(frame,true);
    JPrintPreviewPane preview = new JPrintPreviewPane(pageable,this);
    setAlwaysOnTop(true);
    setTitle("Print preview");
    this.setLocationRelativeTo(frame);

    getContentPane().add(preview,BorderLayout.CENTER);
    pack();
    setLocation(50,50);
	setSize(800, 600);
  }


}

